package com.ecfront.pojo;

import java.util.HashSet;
import java.util.Set;


/**
 * 仓库物品表
 * 
 * @version 1.0
 * @author zhufeng
 */
public class Goods {

	private int id;// 仓库表ID
	private String name;// 商品名称
	private String imgUrl;// 商品图片
	private String info;// 商品信息
	private int restCount;// 剩余件数
	private double price;// 零售价
	private double tradePrice;// 建议批发价
	private double marketPrice;//建议零售价
	private int haveInvoice;// 是否有发票，0没有，1有
	private int isGuarantee;// 是否保修，0没有，1有
	private int isRecommend;// 是否推荐，0不推荐，1推荐
	private int hits;// 商品点击数
	private int isShow;// 是否上架到仓库
	// 以下是多对一关联
	private GoodsSort gs;// 商品类别ID
	private GoodsBrand gb;// 商品品牌ID
	private Supplier supplierId;//商品所属的供货商
	//以下是一对多关联
	private Set goodsImpl = new HashSet(0);

	public Goods() {}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public int getRestCount() {
		return restCount;
	}

	public void setRestCount(int restCount) {
		this.restCount = restCount;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getTradePrice() {
		return tradePrice;
	}

	public void setTradePrice(double tradePrice) {
		this.tradePrice = tradePrice;
	}

	public int getHaveInvoice() {
		return haveInvoice;
	}

	public void setHaveInvoice(int haveInvoice) {
		this.haveInvoice = haveInvoice;
	}

	public int getIsGuarantee() {
		return isGuarantee;
	}

	public void setIsGuarantee(int isGuarantee) {
		this.isGuarantee = isGuarantee;
	}

	public int getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(int isRecommend) {
		this.isRecommend = isRecommend;
	}

	public int getHits() {
		return hits;
	}

	public void setHits(int hits) {
		this.hits = hits;
	}

	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public GoodsSort getGs() {
		return gs;
	}

	public void setGs(GoodsSort gs) {
		this.gs = gs;
	}

	public GoodsBrand getGb() {
		return gb;
	}

	public void setGb(GoodsBrand gb) {
		this.gb = gb;
	}
	
	public Set getGoodsImpl() {
		return this.goodsImpl;
	}

	public void setGoodsImpl(Set goodsImpl) {
		this.goodsImpl = goodsImpl;
	}
	public Supplier getSupplierId() {
		return supplierId;
	}
	public void setSupplierId(Supplier supplierId) {
		this.supplierId = supplierId;
	}
	public double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(double marketPrice) {
		this.marketPrice = marketPrice;
	}
}